
const path = require('path')
module.exports = {
  configureWebpack:  {
    // config.output.filename = `js/[name].[hash].js`;
    // config.output.chunkFilename = `js/[name].[hash].js`;
    resolve:{
      alias:{
        'assets':path.resolve(__dirname,'/src/assets/'),
      }
    }
  },
  devServer: {
    hot:true,
    open:true,
    proxy: {
      "/api": {
        target:"http://localhost:3000",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
